#pragma once
#include <QThread>
#include <QMutex>
#include <QAtomicInteger>
#include "XCompareDir.h"

class XCompareThread : public QThread
{
	Q_OBJECT
public:
	XCompareThread(QObject * p = nullptr);

public slots:
	void SetCompairDir(QString strLeft, QString strRight);

signals:
	void sigCompairResult(QVariant data);

protected:
	virtual void run() override;


private:
	XCompareDir m_compair;
	QMutex m_mutex;
	QAtomicInteger<bool> m_bCancel;
};

